
#include "Mina.h"

Mina::Mina(int posX, int posY, Widget *parent, int angle, int duration,bool isVisibleForMe) :
	Ammo(AMMO_MINA,posX, posY, parent, angle, duration,
			std::string(MINA_DEFAULT_IMAGE), MINA_DEFAULT_VELOCITY,
			MINA_DEFAULT_DAMAGE, std::string(MINA_DEFAULT_SOUND_EFFECT)) {

	posX = posX - getOffsetX();
	posY = posY + getOffsetY();
	nextX = posX;
	nextY = posY;
	this->parcel->updateXY(posX, posY);

	this->isVisibleForMe = isVisibleForMe;

}

void Mina::resolve(){
	WidgetMovimiento::resolve();
}

void Mina::showOn(SDL_Surface* canvasSurface){
	if(isVisibleForMe){
		Ammo::showOn(canvasSurface);
	}
}

Mina::~Mina() {}
